<?php

class MasterProduct extends AppModel {

    var $name = "MasterProduct";
    var $belongsTo = array(
        'Product' => array(
            'className' => 'Product',
            'foreignKey' => 'product_id',
            'fields' => array('Product.name', 'Product.id')
        ),
        'User' => array(
            'className' => 'User',
            'foreignKey' => 'user_id',
            'fields' => array('User.name', 'User.id')
        ),
        'Seller' => array(
            'className' => 'Seller',
            'foreignKey' => 'seller_id',
            'fields' => array('Seller.bs_dis_name', 'Seller.id')
        ),
    );

}